//
//  BaseViewController.swift
//  firstSwiftWeiBo
//
//  Created by Inverno on 16/12/5.
//  Copyright © 2016年 Inverno. All rights reserved.
//

import UIKit

class BaseViewController: UITableViewController {
    
    lazy var visitView = VisitView.visitView()
    var isLogin = false
    
    override func loadView() {
        isLogin ? super.loadView() : setupVisitView()
    }
    
    override func viewDidLoad() {
        
    }
    
}

extension BaseViewController {
    
    private func setupVisitView() {
        view = visitView
    }
    
}
